
Show the head (first values) or tail (last values) of a SpatRaster or of the attributes of a SpatVector.
head(x, ...)
tail(x, ...)
matrix (SpatRaster) or data.frame (SpatVector)
SpatRaster or SpatVector
additional arguments passed on to other methods
show
, geom
r <- rast(nrows=25, ncols=25)
values(r) <- 1:ncell(r)
head(r)
tail(r)
Run the code above in your browser using DataLab